import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import '@vant/touch-emulator';
import MetaInfo from 'vue-meta-info';
import http from './api/axios-init'
import common from './assets/js/common'

// import 'bootstrap/dist/css/bootstrap.min.css'


import Vant from 'vant';
import { Toast } from 'vant';
import 'vant/lib/index.css';
Vue.use(Vant);

// import Element from './assets/js/demandload.js';
// Vue.use(Element);
import './assets/css/reset.css'
import 'element-ui/lib/theme-chalk/index.css';
import 'element-ui/lib/theme-chalk/display.css';
import './assets/css/common.less'

import ElementUI from 'element-ui'
Vue.use(ElementUI);

Vue.config.productionTip = false
Vue.prototype.$axios = http;
Vue.prototype.$Common = common;
Vue.prototype.$Toast = Toast;


new Vue({
  router,
  store,
  mounted() {
    document.dispatchEvent(new Event('render-event'))
  },
  render: h => h(App)
}).$mount('#app')
